package ${servicePackageName}.qo.sys;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 
 * @author lizihao
 *
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel("新增或修改机构请求数据")
public class DepartmentReq implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5830999375328820505L;
		@ApiModelProperty(value = "机构id,不为空则是新增")
		private String id;
	 
		@ApiModelProperty(value = "机构名称")
	    private String departmentName;

	    @ApiModelProperty(value = "父机构id")
	    @NotNull(message="父机构id不能为空,顶级则填0")
	    private String parentDepId;
	    
	    @ApiModelProperty(value = "0-启用,1-禁用")
	    private Integer isEnable;

}
